package demo3;

public class Text {
    public static void main(String[] args) {
        Rect rect=new Rect();
        Crcle crcle=new Crcle();
        Shape[] shapes={crcle,rect,crcle,rect};
        for(Shape shape:shapes){
            shape.draw();
        }
    }
}
